package com.CGFrame.struts.bean.gant;

public  class GantBean {
	public static double getPercentByStatus(String statusName)
	{
		if(statusName.equals("Finished"))
		{
			return 1;
		}
		else if (statusName.equals("HasInput"))
		{
			return 0.0;
		}
		else if (statusName.equals("HasAssigned") )
		{
			return 0.0;
		}
		else if (statusName.equals("ConfirmPassed") )
		{
			return 0.9;
		}
		else
		{
			return 0.5;
		}
		
	}
}
